package org.example.designPattern.creation.singleton;

/**
*   枚举——天然的饿汉单例模式
* */
public enum SingletonDemo4 {
    INSTANCE;

    private void doSomeThing(){
        System.out.println("doSomeThing");
    }

    public static void main(String[] args) {
        INSTANCE.doSomeThing();
    }
}
